String.prototype.unique = function () {
  var obj = {},
    str = "",
    len = this.length;
    for(var i=0;i<len;i++){
      if(!obj[this[i]]){
        str += this[i];
        obj[this[i]] = true
      }
    }
    return str;
};
